﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Web_Oto.Bases
{
    public class busObject : IDisposable
    {
        protected string m_strConnection;
        protected string m_strConnectionType;

         public busObject()
         {
             this.m_strConnection = ConfigurationManager.AppSettings["SqlConnect"];
             this.m_strConnectionType = (ConfigurationManager.AppSettings["ConnectionType"] != null) ? ConfigurationManager.AppSettings["ConnectionType"] : "MSSQL";
         }

        public busObject(string connectName)
        {
            this.m_strConnection = connectName;
            this.m_strConnectionType = (ConfigurationManager.AppSettings["ConnectionType"] != null) ? ConfigurationManager.AppSettings["ConnectionType"] : "MSSQL";
        }

        public busObject(string connectName, string connectionType)
        {
            this.m_strConnection = connectName;
            this.m_strConnectionType = connectionType;
        }

        public string connectionstring { get; set; }
        public string connectiontype { get; set; }

        public virtual void Dispose()
        {
            
        }
    }
}
